from openpyxl import load_workbook


wb = load_workbook("./list_dytt.xlsx")
sh = wb["list"]

for page in range(2, 8):

    class_ = sh.cell(page, 4).value
    if sh.cell(page, 1).value != "":
        url_base = sh.cell(page, 1).value
        start = int(sh.cell(page, 2).value)
        end = int(sh.cell(page, 3).value)
        range_ = end - start
        print(url_base, start, end, range_, sh.cell(page, 4).value)


wb.save("./list_dytt.xlsx")
